package chinese.admin.domain;

import java.io.Serializable;

/**
 * <p>实体类</p>
 * <p>Table: ChnAuthor</p>
 *
 */
public class ChnAuthor extends DataTablePage implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -5479338060398082459L;
	Integer id;
	Integer userId;
	String author;
	String school;
	Integer grade;
	Integer deleteFlag;
	String createAt;
	String createUser;
	String updateAt;
	String updateUser;
	
	Integer year;
	Integer month;
	Integer yearForWeek;
	Integer week;
	Integer rangeNum;
	Integer articleCnt;
	Integer popular;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getSchool() {
		return school;
	}
	public void setSchool(String school) {
		this.school = school;
	}
	public Integer getGrade() {
		return grade;
	}
	public void setGrade(Integer grade) {
		this.grade = grade;
	}
	public Integer getDeleteFlag() {
		return deleteFlag;
	}
	public void setDeleteFlag(Integer deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	public String getCreateAt() {
		return createAt;
	}
	public void setCreateAt(String createAt) {
		this.createAt = createAt;
	}
	public String getCreateUser() {
		return createUser;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	public String getUpdateAt() {
		return updateAt;
	}
	public void setUpdateAt(String updateAt) {
		this.updateAt = updateAt;
	}
	public String getUpdateUser() {
		return updateUser;
	}
	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}
	public Integer getYear() {
		return year;
	}
	public void setYear(Integer year) {
		this.year = year;
	}
	public Integer getMonth() {
		return month;
	}
	public void setMonth(Integer month) {
		this.month = month;
	}
	public Integer getYearForWeek() {
		return yearForWeek;
	}
	public void setYearForWeek(Integer yearForWeek) {
		this.yearForWeek = yearForWeek;
	}
	public Integer getWeek() {
		return week;
	}
	public void setWeek(Integer week) {
		this.week = week;
	}
	public Integer getRangeNum() {
		return rangeNum;
	}
	public void setRangeNum(Integer rangeNum) {
		this.rangeNum = rangeNum;
	}
	public Integer getArticleCnt() {
		return articleCnt;
	}
	public void setArticleCnt(Integer articleCnt) {
		this.articleCnt = articleCnt;
	}
	public Integer getPopular() {
		return popular;
	}
	public void setPopular(Integer popular) {
		this.popular = popular;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + ((articleCnt == null) ? 0 : articleCnt.hashCode());
		result = prime * result + ((author == null) ? 0 : author.hashCode());
		result = prime * result + ((createAt == null) ? 0 : createAt.hashCode());
		result = prime * result + ((createUser == null) ? 0 : createUser.hashCode());
		result = prime * result + ((deleteFlag == null) ? 0 : deleteFlag.hashCode());
		result = prime * result + ((grade == null) ? 0 : grade.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((month == null) ? 0 : month.hashCode());
		result = prime * result + ((popular == null) ? 0 : popular.hashCode());
		result = prime * result + ((rangeNum == null) ? 0 : rangeNum.hashCode());
		result = prime * result + ((school == null) ? 0 : school.hashCode());
		result = prime * result + ((updateAt == null) ? 0 : updateAt.hashCode());
		result = prime * result + ((updateUser == null) ? 0 : updateUser.hashCode());
		result = prime * result + ((userId == null) ? 0 : userId.hashCode());
		result = prime * result + ((week == null) ? 0 : week.hashCode());
		result = prime * result + ((year == null) ? 0 : year.hashCode());
		result = prime * result + ((yearForWeek == null) ? 0 : yearForWeek.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		ChnAuthor other = (ChnAuthor) obj;
		if (articleCnt == null) {
			if (other.articleCnt != null)
				return false;
		} else if (!articleCnt.equals(other.articleCnt))
			return false;
		if (author == null) {
			if (other.author != null)
				return false;
		} else if (!author.equals(other.author))
			return false;
		if (createAt == null) {
			if (other.createAt != null)
				return false;
		} else if (!createAt.equals(other.createAt))
			return false;
		if (createUser == null) {
			if (other.createUser != null)
				return false;
		} else if (!createUser.equals(other.createUser))
			return false;
		if (deleteFlag == null) {
			if (other.deleteFlag != null)
				return false;
		} else if (!deleteFlag.equals(other.deleteFlag))
			return false;
		if (grade == null) {
			if (other.grade != null)
				return false;
		} else if (!grade.equals(other.grade))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (month == null) {
			if (other.month != null)
				return false;
		} else if (!month.equals(other.month))
			return false;
		if (popular == null) {
			if (other.popular != null)
				return false;
		} else if (!popular.equals(other.popular))
			return false;
		if (rangeNum == null) {
			if (other.rangeNum != null)
				return false;
		} else if (!rangeNum.equals(other.rangeNum))
			return false;
		if (school == null) {
			if (other.school != null)
				return false;
		} else if (!school.equals(other.school))
			return false;
		if (updateAt == null) {
			if (other.updateAt != null)
				return false;
		} else if (!updateAt.equals(other.updateAt))
			return false;
		if (updateUser == null) {
			if (other.updateUser != null)
				return false;
		} else if (!updateUser.equals(other.updateUser))
			return false;
		if (userId == null) {
			if (other.userId != null)
				return false;
		} else if (!userId.equals(other.userId))
			return false;
		if (week == null) {
			if (other.week != null)
				return false;
		} else if (!week.equals(other.week))
			return false;
		if (year == null) {
			if (other.year != null)
				return false;
		} else if (!year.equals(other.year))
			return false;
		if (yearForWeek == null) {
			if (other.yearForWeek != null)
				return false;
		} else if (!yearForWeek.equals(other.yearForWeek))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "ChnAuthor [id=" + id + ", userId=" + userId + ", author=" + author + ", school=" + school + ", grade="
				+ grade + ", deleteFlag=" + deleteFlag + ", createAt=" + createAt + ", createUser=" + createUser
				+ ", updateAt=" + updateAt + ", updateUser=" + updateUser + ", year=" + year + ", month=" + month
				+ ", yearForWeek=" + yearForWeek + ", week=" + week + ", rangeNum=" + rangeNum + ", articleCnt="
				+ articleCnt + ", popular=" + popular + "]";
	}
	
}